package com.wanshi.cloud.client;


import com.wanshi.cloud.entity.Orders;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;


import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 顽石教育-www.wanshi.com
 * @since 2021-09-03
 */
@FeignClient(value="order-server")
@RequestMapping("/feign/orders")
public interface OrderClient {

    //根据用户id查询所有订单
    @GetMapping("/user/{userid}")
    List<Orders> findbyuserid(@PathVariable String userid);
}
